package com.cskaoyan.market.service;

import com.cskaoyan.market.bo.MarketGoodsBo;
import com.cskaoyan.market.vo.CategoryUseInCABVo;
import com.cskaoyan.market.vo.MarketGoodsCatAndBrandVo;
import com.cskaoyan.market.db.domain.MarketGoods;
import com.cskaoyan.market.db.domain.*;
import com.cskaoyan.market.vo.BrandVo;
import com.cskaoyan.market.vo.CategoryVo;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface MarketGoodsService {
    Map<String , Object> getCatAndBrand();

//    List<MarketGoods> readGoodsList(String page, String limit, String sort, String order, String id, String name, String goodsSn);

    List<MarketCategory> getCategoryList(Integer pid);
    List<CategoryUseInCABVo> packageMarketCategoryList(List<MarketCategory> CategoryList);
    List<BrandVo> getBrandsList();

    int createMarketGoods(MarketGoods marketGoods);

    int createMarketGoodsSpecifications(List<MarketGoodsSpecification> marketGoodsSpecification);

    int createMarketGoodsProduct(List<MarketGoodsProduct> marketGoodsProduct);

    int createMarketGoodsAttribute(List<MarketGoodsAttribute> marketGoodsAttribute);

// @author lanch
// @since 2023/05/07 15:53

    List<MarketGoods> getGoods(Integer page, Integer limit, String sort, String order,String goodsSn,String name,String goodsId);

    HashMap<String, Object> getGoodsDetail(Integer id);

    void deleteGoodsById(MarketGoods o,Integer id);

    void updateGoods(MarketGoodsBo marketGoodsBo);

//    MarketGoodsCatAndBrandVo getCatAndBrand();

}
